package com.htx.oldbookpavilion.service.homeservice.impl;

import com.htx.oldbookpavilion.common.StandardPageData;
import com.htx.oldbookpavilion.entity.BookInfo;
import com.htx.oldbookpavilion.entity.BookTypeDict;
import com.htx.oldbookpavilion.service.bookinfoservice.BookInfoService;
import com.htx.oldbookpavilion.service.homeservice.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeServiceImpl  implements HomeService {

    @Autowired
    private BookInfoService bookInfoService;


    /**
     * 导航栏检索书籍
     * @param sPageData
     * @return
     */
    @Override
    public StandardPageData<BookInfo> getBooksByPage(StandardPageData<BookInfo> sPageData) {
        return bookInfoService.getBooksByPage(sPageData);
    }

    /**
     * 获取标签数据
     * @return
     */
    @Override
    public List<BookTypeDict> getBookTypeData() {
        return bookInfoService.getBookTypeData();
    }
}
